<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sport_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sport_name" data-rule="required" class="form-control" name="row[sport_name]" type="text" value="{$row.sport_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sport_feel')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sport_feel" class="form-control" name="row[sport_feel]" type="text" value="{$row.sport_feel|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sport_space')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sport_space" class="form-control" name="row[sport_space]" type="text" value="{$row.sport_space|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weather')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weather" class="form-control" name="row[weather]" type="text" value="{$row.weather|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Heart')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-heart" data-rule="required" class="form-control" name="row[heart]" type="number" value="{$row.heart|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-starttime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[starttime]" type="text" value="{:$row.starttime?datetime($row.starttime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[endtime]" type="text" value="{:$row.endtime?datetime($row.endtime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Day')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-day" class="form-control datetimepicker" name="row[day]"  data-date-format="YYYY-MM-DD" data-use-current="true"  type="text" value="{$row.day|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Dakatime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dakatime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[dakatime]" type="text" value="{:$row.dakatime?datetime($row.dakatime):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_admin')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-is_admin" data-rule="required" class="form-control selectpicker" name="row[is_admin]">
                {foreach name="isAdminList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.is_admin"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
